package com.kc.business.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 导游商品
 */
@Data
@Table(name = "kc_tourguide_goods")
public class BizTourguideGoods {
    /*主键id*/
    @Id
    private Integer id;
    /*导游id*/
    @NotNull(message = "导游id不能为空")
    @Min(value = 1,message = "导游id错误")
    private Integer tourguideId;
    /*导游名称*/
    @Transient
    private String tourguideName;
    /*导游头像*/
    @Transient
    private String tourguideAvatar;
    /*套餐价格*/
    @NotNull(message = "套餐价格不能为空")
    @Min(value = 1,message = "套餐价格错误")
    private BigDecimal goodsPrice;
    /*状态:1上架，0下架*/
    @NotNull(message = "套餐状态不能为空")
    private Integer status;
    /*删除标记:1已删除，0未删除*/
    private Integer isDeleted = 0;
    /*服务时长*/
    @NotNull(message = "服务时长不能为空")
    @Min(value = 1,message = "服务时长错误")
    private BigDecimal timeLength;
    @NotBlank(message = "套餐名称不能为空")
    private String goodsName;
}
